import os.path
media = os.path.join(
  os.path.dirname(__file__), 'media'
)

from django.conf.urls.defaults import *
from djsite import pages
from django.contrib.auth.views import login, logout


# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^djsite/', include('djsite.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    (r'^accounts/', include('registration.urls')),
    (r'^', include('pages.urls')),


    (r'^media/(?P<path>.*)$', 'django.views.static.serve', { 'document_root': media }),

)

